<template>
  <div id="app">
    <router-view v-if="isReload" />
    <!-- <waring /> -->
  </div>
</template>

<script>
// import waring from './views/message/waring.vue'
export default {
  name: 'App',
  components: {
    // waring
  },
  provide() {
    return {
      reload: this.reload,
    };
  },
  data() {
    return {
      isReload: true,
    };
  },
  methods: {
    reload() {
      this.isReload = false;
      this.$nextTick(() => {
        this.isReload = true;
      });
      console.log('刷新页面了');
    },
  },
};
</script>

<style lang="scss" scoped>
#app {
  // width: 100%;
  height: 100%;
  // height: auto;
  // overflow: visible !important;
  // box-sizing: border-box;
}
::v-deep.el-table th.gutter {
  /*
      * 解决element-ui 表格篡位的问题 👇
      */
  display: table-cell !important;
}
</style>
